import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:layout-dashboard',
      order: 3,
      title: '业务组件',
    },
    name: 'Business',
    path: '/business',
    children: [
      {
        name: 'Attachment',
        path: '/attachment',
        component: () => import('#/views/dashboard/workspace/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '会员管理',
        },
      },
      {
        name: 'Article',
        path: '/article',
        component: () => import('#/views/dashboard/workspace/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '文章管理',
        },
      },
      {
        name: 'Workflow',
        path: '/workflow',
        component: () => import('#/views/dashboard/workspace/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '业务流程',
        },
      },
    ],
  },
];

export default routes;
